package com.example.loginsystem.dao;

import com.example.loginsystem.bean.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Cheung0
 * Created on 2021/11/24
 */
@Mapper
public interface MessageDAO {

    int addMessage(Message message);

    int deleteMessage(int id);

    int updateMessage(Message message);

    Message getMessageById(int id);

    List<Message> getMessageByUserId(String userId);

    List<Message> getAll();

}
